package com.iyundao.io.mapper;

import com.iyundao.io.model.ActivityCategory;

import static org.apache.ibatis.jdbc.SqlBuilder.*;

public class ActivityCategorySqlProvider {

    public String insertSelective(ActivityCategory record) {
        BEGIN();
        INSERT_INTO("activitycategory");
        
        if (record.getId() != null) {
            VALUES("id", "#{id,jdbcType=INTEGER}");
        }
        
        if (record.getCategoryname() != null) {
            VALUES("categoryname", "#{categoryname,jdbcType=VARCHAR}");
        }
        
        if (record.getCategoryintegral() != null) {
            VALUES("categoryintegral", "#{categoryintegral,jdbcType=INTEGER}");
        }
        
        return SQL();
    }
}